package com.yanqu.road.entity.log.yuanbaolottery;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.activity.foxcard.FoxSaleCard;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_activity_yuanbao_lottery", desc = "元宝招财抽奖", autoSave = true, dataUpload = true, eventName = "yb_draw", uploadCk = true)
public class LogYuanBaoLottery extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "关卡id", dataAttribute = "round_id")
    private int roundId;
    @FieldTypeAnnotation(desc = "回合数", dataAttribute = "cost_num")
    private int lotteryTimes;
    @FieldTypeAnnotation(desc = "消耗元宝数", dataAttribute = "chasedeer_accyb")
    private int ingots;
    @FieldTypeAnnotation(desc = "本次倍率", dataAttribute = "horserun_riskratio")
    private int ingotsMulti;
    @FieldTypeAnnotation(desc = "买的位置", dataAttribute = "get_ingot")
    private int ingotsAward;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogYuanBaoLottery(int activityId, long userId, int roundId, int lotteryTimes, int ingots, int ingotsMulti, int ingotsAward) {
        this.activityId = activityId;
        this.userId = userId;
        this.roundId = roundId;
        this.lotteryTimes = lotteryTimes;
        this.ingots = ingots;
        this.ingotsMulti = ingotsMulti;
        this.ingotsAward = ingotsAward;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
